$(function (){
    var showbtn = document.getElementById("showtotal");
    var totalText = document.getElementById("totalText");
    var hidebtn = document.getElementById("hidetotal");
    var showbtn2 = document.getElementById("showtotal2");
    var totalText2 = document.getElementById("totalText2");
    var hidebtn2 = document.getElementById("hidetotal2");
    showbtn.onclick=function(){
        totalText.className = "";
        showbtn.className = "hidebutton";
        hidebtn.className = "Button Button--plain";
    }
    hidebtn.onclick=function(){
        totalText.className = "RichText ztext";
        showbtn.className = "Button QuestionRichText-more Button--plain";
        hidebtn.className = "Button Button--plain hidebutton";
    }
    showbtn2.onclick=function(){
        totalText2.className = "";
        showbtn2.className = "hidebutton";
        hidebtn2.className = "Button Button--plain";
    }
    hidebtn2.onclick=function(){
        totalText2.className = "RichText ztext";
        showbtn2.className = "Button QuestionRichText-more Button--plain";
        hidebtn2.className = "Button Button--plain hidebutton";
    }
    var setAttention = document.getElementById("setAttention");
    setAttention.onclick=function(){
        if(setAttention.className == "Button FollowButton Button--primary Button--blue"){
            setAttention.className="Button FollowButton Button--primary Button--grey";
            setAttention.textContent="已关注";
        }else{
            setAttention.className="Button FollowButton Button--primary Button--blue";
            setAttention.textContent="关注问题";
        }

    }
})